package com.example.mqttclient.mqtt;

public class MqttParameters {
    public String serverIp;
    public String port;
    public String clientId;
    public String userName;
    public String password;

    public MqttParameters(String serverIp, String port, String clientId, String userName, String password) {
        this.serverIp = serverIp;
        this.port = port;
        this.clientId = clientId;
        this.userName = userName;
        this.password = password;
    }

    public String getUri() {
        return "tcp://" + serverIp + ":" + port;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getClientId() {
        return clientId;
    }

    public String getUserName() {
        return userName;
    }

    public String getPassword() {
        return password;
    }
}